import axios from 'axios'
import authApi from "~/utils/auth"

// 创建axios实例
const service = axios.create({
  baseURL: "http://192.168.202.142:7300/mock/5d485a663cf642f08c6293c0", // api的base_url
  //baseURL: "http://localhost:9001",
  timeout: 15000, // 请求超时时间
  headers: {'Authorization': 'Bearer ' + authApi.getUser().token}
})

export default service
